﻿using System;
using System.Collections.Generic;

namespace Qy.Models
{
    /// <summary>
    /// 用户登录
    /// </summary>
    public class LoginDto
    {
        /// <summary>
        /// 登录名
        /// </summary>
        public string Username { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 持久登录
        /// </summary>
        public bool Remember { get; set; }
    }

    /// <summary>
    /// 当前用户信息
    /// </summary>
    public class UserInfo
    {
        public int UserId { get; set; }
        public int DeptId { get; set; }
        public int PostId { get; set; }
        public int Gid { get; set; }
        public string Username { get; set; }
        public string Nickname { get; set; }
        public string DeptName { get; set; }
        public string PostName { get; set; }
        public string PostCode { get; set; }
        public bool Status { get; set; }
        public string Groupname { get; set; }        
        public List<string> SystemRole { get; set; }
        public List<string> ChannlRole { get; set; }
        public int Sex { get; set; }
        public string Avatar { get; set; }
        public string Phone { get; set; }
    }

    public class UserAction
    {
        public int UserId { get; set; }
        public string Controller { get; set; }
        public string Action { get; set; }
        public string Ip { get; set; }
    }


}
